<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    
    <title>mscratch playground</title>
    <style>
        html,
        body {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        
        div {
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        
        .top {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
        }
        
        .playground {
            border: 2px solid gray;
            width: auto;
            height: 100%;
            /* position: relative; */
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }
        
        .list {
            padding: 0rem 0rem;
            border: 1px solid rgb(92, 92, 92);
            border-radius: 2px;
            flex-grow: 0;
            flex-shrink: 0;
            flex-basis: auto;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }
        
        .logger {
            /* position: absolute;
            
            bottom: 0; */
            color: red;
            pointer-events: none; 
            overflow-y:visible
        }

        .list-item {
            width: auto;
        }
        
        .api {
            
            /* width: 20rem;*/
            white-space: nowrap;
            /* background: grey; */
            /* border: 1px solid rgb(92, 92, 92); */
            padding: 0.5rem 1rem;
            flex-grow: 0;
            flex-shrink: 0;
            flex-basis: auto;
        
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }

        .api-item {
            margin: 0.5rem 0;
        }
        
        .scratch {
            border: 2px solid gray;
            width: 100%;
            height: 100%;
        }
        
        #scratch {
            position: relative;
            left: 0;
            right: 0;
            top:0;
            bottom: 0;
            height: 100%;
        }

        input {
            display: inline; 
            size: "4";
            max-width: ch;
        }
        
    </style>
</head>
<script type="text/javascript" src="./static/socket.io.js"></script>
<script type="text/javascript" src="./static/neurons_logic_engine.js"></script>
<script type="text/javascript" src='./static/playground.js'></script>

<body onload="main()">
    <div class="top">
        <div class="playground">
            <h3>mscratch API</h3>
            <div class="list">
            </div>
            <div class="api">
            </div>
            <div class="logger">
            </div>
        </div>
        <div class='scratch'>
            <div id='scratch'></div>
        </div>
    </div>

<script type="text/javascript" src="lib.min.js"></script><script type="text/javascript" src="mscratch.js"></script></body>

</html>